package com.oocl.PlantsVsZombies;

public abstract class Plant {
	public double hitPiont;
	public double attackPiont;
	public double recharge;
	public int  range;
	public double prepareTime;
	public double cooldownTime;
	public int cost;
	public double damagePiont;
	public double criticalPiont;
	public int posRow;
	public int posColumn;
	public boolean isAlive;
	public Field field;
	public void hpCutDown(double atk)
	{
		this.hitPiont-=atk;
		if(this.hitPiont<=0)
		{
			isAlive=false;
			System.out.println("plant die");
			field.hasPlants[posRow][posColumn]=false;
		}
		
	}
}
